Magento 2 Useful Commands Shortcut

List of useful commands for Magento 2 shortcuts  

To know the Magento version running

 php bin/magento --version  

Setup Upgrade Using Command Line  

 php bin/magento setup:upgrade  

  

If you don’t want to remove pub/static files while installing/updating the database then use the following command.  

 php bin/magento setup:upgrade --keep-generated  

  

 Cache Clean Using Command Line  

 php bin/magento cache:clean  

  

 Cache Flush Using Command Line  

 php bin/magento cache:flush  

  

 View cache status Using following command Line  

 php bin/magento cache:status  

  

 Enable Cache Using Command Line  

 php bin/magento cache:enable  

  

Disable Cache Using Command Line  

 php bin/magento cache:disable [cache_type]  

  

 Static Content Deploy Using Command Line  

 php bin/magento setup:static-content:deploy  

 (Use -f for force deploy on 2.2.x or later)  

 php bin/magento setup:static-content:deploy -f  

  

 Static Content Deploy For Particular Language Using Command Line  

 php bin/magento setup:static-content:deploy en_US  

  

 Static Content Deploy For Magento Backend Theme Using Command Line (Working on 2.1.1 or later)  

 php bin/magento setup:static-content:deploy --theme="Magento/backend"  

  

 Static Content Deploy For Specific Themes Using Command Line (Working on 2.1.1 or later)  

 php bin/magento setup:static-content:deploy --theme Magento/luma --theme Magento/second_theme  

 Enable module Using Command Line  

 php bin/magento module:enable Namespace_Module  

  

 Disable module Using Command Line  

 php bin/magento module:disable Namespace_Module  

  

Uninstall Module Using Command Line  

 php bin/magento module:uninstall Namespace_Module  

  

 Reindexing Using Command Line  

 php bin/magento indexer:reindex  

  

View the list of indexers Using Command Line  

 php bin/magento indexer:info  

  

View indexer status Using Command Line  

 php bin/magento indexer:status  

  

 Show the mode of all indexers Using Command Line      

 php bin/magento module:status  

  

 Check Current Mode Using Command Line  

 php bin/magento deploy:mode:show  

  

 Change To Developer Mode Using Command Line  

 php bin/magento deploy:mode:set developer  

  

 Change To Production Mode Using Command Line  

 php bin/magento deploy:mode:set production  

  

 Run the single-tenant Compiler Using Command Line  

php bin/magento setup:di:compile  

  

Unlock Admin User Using Command Line  

 php bin/magento admin:user:unlock adminusername  

  

 Enable Maintenance Mode Using Command Line  

 php bin/magento maintenance:enable  

  

 To enable maintenance mode for all clients except 192.0.0.1 and 192.0.0.2  

 php bin/magento maintenance:enable --ip=192.0.0.1 --ip=192.0.0.2  

  

 To clear the list of IPs.  

 php bin/magento maintenance:enable --ip=none  

  

 Disable Maintenance Mode Using Command Line  

 php bin/magento maintenance:disable  

  

 Check Maintenance Mode Status Using Command Line  

 php bin/magento maintenance:status  

  

 How to Allow IP on Maintenance Mode Using Command Line  

 php bin/magento maintenance:allow-ips --ip=192.0.0.1 --ip=192.0.0.2  

  

 Set Magento crontab Using Command Line  

 php bin/magento cron:install --force (Use --force to rewrite an existing Magento crontab.)  

  

 To view the crontab, enter the following command as the Magento file system owner.  

 crontab -l  

  

Remove Magento crontab Using Command Line  

php bin/magento cron:remove  

Enable Merge CSS

php bin/magento config:set dev/css/merge_css_files 1

Disable Merge CSS

php bin/magento config:set dev/css/merge_css_files 0

Enable Merge JS

php bin/magento config:set dev/js/merge_files 1

Disable Merge JS

php bin/magento config:set dev/js/merge_files 0

Enable Frontend template hints

php bin/magento dev:template-hints:enable

Disable Frontend template hints

php bin/magento dev:template-hints:disable

Check to determine whether or not you need to upgrade the database (using setup:upgrade)

php bin/magento setup:db:status

Enable database query log 

php bin/magento dev:query-log:enable

2   0
Shailesh Kumar
profile yong 12th November 2024

연락 주시고, 몸과 마음을 편안하게 쉬어갈 수 있는 최고의 출장안마 선택하세요
출장마사지 는 고객의 편안함과 건강을 최우선으로 생각하며 맞춤형 힐링 서비스를 제공합니다.
출장마사지는 20대 미녀 테라피스트 와 함께하는 특별한 힐링 100%후불제 출장마사지
 

Write a comment ...
Post comment
Cancel
profile yong 2nd November 2024

https://aqamassige.com/incheon/

https://www.winteranma.com/region-daejeon

Write a comment ...
Post comment
Cancel
profile yong 2nd November 2024

https://aqamassige.com

https://www.honymassage.com

"Great post! I learned a lot and found it very engaging. Keep up the good work!"
 

Write a comment ...
Post comment
Cancel
profile Tekked 1st November 2024

So many colors. They all make me dizzy with love. Bubble shooter

Write a comment ...
Post comment
Cancel
profile yong 14th October 2024

"Massage is highly beneficial for physical health, as it promotes better blood circulation and lymphatic flow, which aids in healing and detoxification. It helps in alleviating muscle pain and stiffness, enhancing mobility and flexibility. The therapy also reduces stress by lowering cortisol levels and increasing endorphins, which can improve mood and contribute to a greater sense of relaxation."
출장안마

Write a comment ...
Post comment
Cancel
profile Nguyen 10th October 2024

vin777 is known as one of the leading bookmakers in Asia. The vin777 website will share all the necessary information for those who need it. This is vin777's newest homepage - please click here tải app vin777

Write a comment ...
Post comment
Cancel
profile Nguyen 10th October 2024

789win is known as one of the leading bookmakers in Asia. The 789win website will share all the necessary information for those who need it. This is 789win's newest homepage - please click here Readmore: tải app 789win

Write a comment ...
Post comment
Cancel
profile Nguyen 3rd October 2024

J88 is a bookmaker that is making waves in the online gaming community and those who love online betting. J88ld is not simply a bookmaker, but also a miniature entertainment world. With a series of interesting and exciting betting entertainment games. Readmore: tải app j88

Write a comment ...
Post comment
Cancel
profile Nguyen 27th September 2024

33win is a bookmaker that is making waves in the online gaming community and those who love online betting. 333win is not simply a bookmaker, but also a miniature entertainment world. With a series of interesting and exciting betting entertainment games. Readmore: tải app 33win

Write a comment ...
Post comment
Cancel
profile Nguyen 21st September 2024

Kuwin Top reputable online casino in Vietnam⭐️Guaranteed reputation for ten years⭐️Register now, receive generous rewards immediately️ - please click here Readmore: tải app kuwin

Write a comment ...
Post comment
Cancel
profile Annata 21st September 2024

Magento 2 provides a robust command-line interface (CLI) that helps manage various aspects of the platform, making development, Skribbl IO troubleshooting, and administration much easier.

Write a comment ...
Post comment
Cancel
profile halin 20th September 2024

 Enhance your well-being with our specialized massage services. From relieving chronic pain to reducing stress, our therapists deliver tailored treatments that promote relaxation and health. Book today!

출장안마

Write a comment ...
Post comment
Cancel
profile yong 19th September 2024

http://www.winteranma.com 윈터출장마사지

언제 어디서나 편리하게 받을 수 있는 출장안마 서비스로 휴식을 최상의 휴식을 제공합니다(스팸링크를 피하려면 구글에서 “윈터출장샵" 검색해서찾아주세요)

Write a comment ...
Post comment
Cancel
profile yong 12th September 2024

"Impressive article! I found the information useful and the presentation excellent."
http://www.winteranma.com

Write a comment ...
Post comment
Cancel

Please rotate your device

We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site